package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.ncc.NccBasicDeptVo;
import com.bzkj.basicinfo.domain.ncc.dto.NccBasicDeptDto;
import com.bzkj.basicinfo.domain.ncc.NccBasicDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface NccBasicDeptMapper
{


    NccBasicDept queryNccBasicDept(String code);

    void updateNccBasicDept(NccBasicDept nccBillStatus);

    void insertNccBasicDept(NccBasicDept nccBillStatus);

    /**
     * 分页查询部门信息
     *
     * @Author wangzhichao
     * @Date 2024/12/09 13:19:17
     * @Param dto
     */
    List<NccBasicDept> findNccBasicDeptData(NccBasicDeptDto dto);

    /**
     * 根据pkDept修改部门状态
     * @Author wangzhichao
     * @Date 2024/12/09 13:34:53
     * @Param status
     * @Param pkDept
     */
    int nccBasicDeptEnableStatusUpdate(@Param("status") String status, @Param("code") String code);

    NccBasicDept findNccBasicDeptByCode(String code);

    List<NccBasicDeptVo> findDeptListByName(String name);

    Set<String> findNccBasicpkMeasdocSetList(@Param("pkMeasdoc")List<String> pkMeasdoc);


    /**
     * 插入或更新部门信息
     * @param nccBasicDept 部门信息
     */
    void insertOrUpdate(@Param("item") NccBasicDept nccBasicDept);
}
